﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
using Windows.UI.Xaml.Navigation;
using douban.Core.Apis;

namespace douban.Core.ViewModels
{
    public  class TopicVm:VmBase
    {
        private Topic _current;

        public TopicVm()
        {
            
        }

        public Topic Current
        {
            get { return _current; }
            set
            {
                if (Equals(value, _current)) return;
                _current = value;
                OnPropertyChanged();
            }
        }

     
        public override void OnNavigatedTo(NavigationEventArgs e)
        {
            Current = e.Parameter as Topic;
        }

        public override void OnNavigatedFrom(NavigationEventArgs e)
        {
        }
    }
}
